package com.hairline.mapper;

import com.hairline.bean.Category;
import com.hairline.bean.CategoryExample;
import java.util.List;

import com.hairline.bean.vo.CategoryL1VO;
import org.apache.ibatis.annotations.Param;

public interface CategoryMapper {
    long countByExample(CategoryExample example);

    int deleteByExample(CategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    List<Category> selectByExample(CategoryExample example);

    Category selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByExample(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<CategoryL1VO> categoryL1();
    List<CategoryL1VO> selectCategoryL2ByPid(Integer pid);

    String selectL1NameByid(Integer pid);

    int selectsortIdById(Integer categoryId);
}